<script setup>
// import MovieList from './MovieList.vue'


defineProps({
    title: {
        type: String,
        default: ''
    },

})



</script>

<template>
    <div class="container">
        <div class="pannel">
            <div class="pannel_head">
                <h2>
                    <i class="rebboIcon iconfont icon-dianying"></i>
                    {{ title }}
                </h2>
                <a href="#" class="more">更多 ></a>
                <span class="line">|</span>
                <a href="#">狂飙</a>
                <span class="line">|</span>
                <a href="#">老鼠仓</a>
                <span class="line">|</span>
                <a href="#">新时代</a>
            </div>



            <ul class="right_menu">
                <li> <a href="#"><i class="iconfont icon-shuaxin"></i> 换一换</a></li>
            </ul>
        </div>





        <slot></slot>


    </div>
</template>


<style scoped lang='scss'>
.container {


    .rebboIcon {
        font-size: 24px;
        color: #ff5f00;
    }

    .line {
        margin-left: 10px;
        margin-right: 10px;
    }


    // 设置文本超出使用省略号
    .view-text {
        display: inline-block;
        white-space: nowrap;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    background: #fff;

    .pannel {
        display: flex;
        justify-content: space-between;

        .pannel_head {
            width: 400px;

            h2 {
                display: inline-block;

            }

            .more {
                padding-left: 15px;
            }



        }

        .right_menu {

            li {
                line-height: 70px;
                float: left;

                em {
                    color: #ff5f00;
                }
            }

        }

        a:hover {
            color: $xtxColor;
        }


    }

    .movie_list {
        display: flex;
        height: 850px;
        justify-content: space-between;
        flex-flow: row wrap;

        li {
            width: 19%;
            height: 50%;

            .movie_head {
                width: 100%;
                height: 70%;
                background-size: cover;
                background-position: center;
                background-image: url("@/assets/images/login-bg.png");
                position: relative;
                font-size: 15px;
                font-weight: bold;

                .movie_test_left {
                    position: absolute;
                    bottom: 8px;
                    padding-left: 5px
                }

                .movie_test_right {
                    color: #ff5f00;
                    position: absolute;
                    bottom: 8px;
                    right: 8px;
                }
            }

            .movie_info {
                margin-top: 5px;

                p {
                    font-size: 18px;
                    font-weight: bold;
                }

                span {
                    font-size: 14px;
                    color: #666;
                }

            }
        }
    }
}
</style>